import 'package:flutter/material.dart';

class statelessComp extends StatelessWidget {
  const statelessComp(
      {super.key, required this.username, required this.age, this.imageUrl});
  final String username;
  final int age;
  final String? imageUrl;
  final _likeb = 'eat';

  @override
  Widget build(BuildContext context) {
    return Container(
      child: Column(
        children: [
          Text(
              'hello我是无状态组件,我的姓名是:$username,年龄是:$age,我的图片是:$imageUrl,我喜欢：$_likeb'),
        ],
      ),
    );
  }
}
